package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.CourseFileSrcPublic;
import com.resourcestore.utils.tag.Pagination;

public class CourseFileSrcPublicDao extends BaseDao {

	public List<CourseFileSrcPublic> selectCourseFileSrcPublic(){
		List<CourseFileSrcPublic> list=this.queryForList("selectCourseFileSrcPublic");
		return list;
	}
	
	public List<CourseFileSrcPublic> selectCourseFileSrcPublicByCourseFileIdString(CourseFileSrcPublic courseFileSrcPublic){
		List<CourseFileSrcPublic> list = this.queryForList("selectCourseFileSrcPublicByCourseFileIdString", courseFileSrcPublic);
		return list;
	}
	
	public List<CourseFileSrcPublic> selectCourseFileSrcPublicPage(CourseFileSrcPublic courseFileSrcPublic,Pagination pagination){
		List<CourseFileSrcPublic> list = this.queryForPage("selectCourseFileSrcPublicPage", courseFileSrcPublic,pagination);
		return list;
	}
	
	public int queryCourseFileSrcPublicNum(CourseFileSrcPublic courseFileSrcPublic) {
		return this.queryNum("selectCourseFileSrcPublicCount", courseFileSrcPublic);
	}
	
	public CourseFileSrcPublic selectCourseFileSrcPublicById(CourseFileSrcPublic courseFileSrcPublic){
		return (CourseFileSrcPublic)this.queryForObject("selectCourseFileSrcPublicById", courseFileSrcPublic);
	}
	
	public void insertCourseFileSrcPublic(CourseFileSrcPublic courseFileSrcPublic){
		this.insert("insertCourseFileSrcPublic", courseFileSrcPublic);		
	}
	
	public void updateCourseFileSrcPublic(CourseFileSrcPublic courseFileSrcPublic){
		this.update("updateCourseFileSrcPublic", courseFileSrcPublic);	
	}
	
	public void deleteCourseFileSrcPublic(CourseFileSrcPublic courseFileSrcPublic){
		this.delete("deleteCourseFileSrcPublic", courseFileSrcPublic);
	}
	
	public void deleteMoreCourseFileSrcPublic(CourseFileSrcPublic courseFileSrcPublic){
		this.delete("deleteMoreCourseFileSrcPublic", courseFileSrcPublic);
	}
}
